<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Packet <i>BaseRouteMessage</i></h2>
<b>File: <a href="src-common-CommonMessages.msg.html">src/common/CommonMessages.msg</a></b><br/><p><a href="../doxy/classBaseRouteMessage.html" target="mainframe"><b>C++ definition</b></a></p>
<p>(no description)</p><h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram.
Click <a href="full-msg-usage-diagram.html">here</a> to see the full picture.</p>
<img src="BaseRouteMessage-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="BaseRouteMessage.html" title="Packet BaseRouteMessage" alt="" coords="5,6,144,34">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram.
Click <a href="full-msg-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="BaseRouteMessage-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="BaseRouteMessage.html" title="Packet BaseRouteMessage" alt="" coords="11,83,149,111">
<area shape="rect" id="node2" href="BaseOverlayMessage.html" title="Packet BaseOverlayMessage" alt="" coords="5,6,155,34">
</map>
<h3 class="subtitle">Extends:</h3>
<table>
<tr>
   <td>
      <a href="BaseOverlayMessage.html">BaseOverlayMessage</a>
      <i> (packet)</i>
   </td>
   <td>

<p>Base class for all messages handled by overlay modules</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Fields:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">srcNode</td>
   <td width="100">
      <i>
NodeHandle</i>
   </td>
   <td>
<p>source node</p>
</td>
</tr>
<tr class="local">
   <td width="150">destKey</td>
   <td width="100">
      <i>
OverlayKey</i>
   </td>
   <td>
<p>destination key</p>
</td>
</tr>
<tr class="local">
   <td width="150">hopCount</td>
   <td width="100">
      <i>
int</i>
   </td>
   <td>
<p>hop count, increased by <a href="oversim.common.BaseOverlay.html">BaseOverlay</a></p>
</td>
</tr>
<tr class="inherited">
   <td width="150">statType</td>
   <td width="100">
      <i>
int</i>
   </td>
   <td>
<p>message type for stats</p>
</td>
</tr>
<tr class="local">
   <td width="150">hints</td>
   <td width="100">
      <i>
NodeHandle[]</i>
   </td>
   <td>
<p>hints for next hop (optional)</p>
</td>
</tr>
<tr class="local">
   <td width="150">visitedHops</td>
   <td width="100">
      <i>
TransportAddress[]</i>
   </td>
   <td>
<p>hops for source routing</p>
</td>
</tr>
<tr class="inherited">
   <td width="150">type</td>
   <td width="100">
      <i>
int</i>
   </td>
   <td>
<p>message type</p>
</td>
</tr>
<tr class="local">
   <td width="150">nextHops</td>
   <td width="100">
      <i>
TransportAddress[]</i>
   </td>
   <td>
<p>hops for source routing</p>
</td>
</tr>
<tr class="local">
   <td width="150">hopDelay</td>
   <td width="100">
      <i>
simtime_t[]</i>
   </td>
   <td>
<p>vector of single-hop latency (for stats)</p>
</td>
</tr>
<tr class="local">
   <td width="150">hopStamp</td>
   <td width="100">
      <i>
simtime_t</i>
   </td>
   <td>
<p>timestamp of processing at last hop</p>
</td>
</tr>
<tr class="local">
   <td width="150">routingType</td>
   <td width="100">
      <i>
int</i>
   </td>
   <td>
<p>routing type</p>
</td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #800000; font-weight: bold; ">packet</span><span style="color: #000000; "> </span><span style="color: #000000; ">BaseRouteMessage</span><span style="color: #000000; "> </span><span style="color: #800000; font-weight: bold; ">extends</span><span style="color: #000000; "> </span><span style="color: #000000; ">BaseOverlayMessage</span><span style="color: #000000; ">
{
    </span><span style="color: #000000; ">OverlayKey</span><span style="color: #000000; "> </span><span style="color: #000000; ">destKey</span><span style="color: #000000; ">;             </span><span style="color: #808080; font-style: italic; ">// destination key
</span><span style="color: #000000; ">    </span><span style="color: #000000; ">NodeHandle</span><span style="color: #000000; "> </span><span style="color: #000000; ">srcNode</span><span style="color: #000000; ">;             </span><span style="color: #808080; font-style: italic; ">// source node
</span><span style="color: #000000; ">    </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">routingType</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@enum</span><span style="color: #000000; ">(</span><span style="color: #000000; ">RoutingType</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">// routing type
</span><span style="color: #000000; ">    </span><span style="color: #000080; font-weight: bold; ">int</span><span style="color: #000000; "> </span><span style="color: #000000; ">hopCount</span><span style="color: #000000; "> = </span><span style="color: #008000; ">0</span><span style="color: #000000; ">;               </span><span style="color: #808080; font-style: italic; ">// hop count, increased by BaseOverlay
</span><span style="color: #000000; ">    </span><span style="color: #000000; ">TransportAddress</span><span style="color: #000000; "> </span><span style="color: #000000; ">visitedHops</span><span style="color: #000000; ">[]; </span><span style="color: #808080; font-style: italic; ">// hops for source routing
</span><span style="color: #000000; ">    </span><span style="color: #000000; ">TransportAddress</span><span style="color: #000000; "> </span><span style="color: #000000; ">nextHops</span><span style="color: #000000; ">[];    </span><span style="color: #808080; font-style: italic; ">// hops for source routing
</span><span style="color: #000000; ">    </span><span style="color: #000000; ">NodeHandle</span><span style="color: #000000; "> </span><span style="color: #000000; ">hints</span><span style="color: #000000; ">[];             </span><span style="color: #808080; font-style: italic; ">// hints for next hop (optional)
</span><span style="color: #000000; ">    </span><span style="color: #000000; ">simtime_t</span><span style="color: #000000; "> </span><span style="color: #000000; ">hopStamp</span><span style="color: #000000; ">;             </span><span style="color: #808080; font-style: italic; ">// timestamp of processing at last hop
</span><span style="color: #000000; ">    </span><span style="color: #000000; ">simtime_t</span><span style="color: #000000; "> </span><span style="color: #000000; ">hopDelay</span><span style="color: #000000; ">[];           </span><span style="color: #808080; font-style: italic; ">// vector of single-hop latency (for stats)
</span><span style="color: #000000; ">}

</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
